package cn.gok.jenkinsdemo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: chen fan
 * @since: 2022/12/7 17:36
 * @description:
 */
@RestController
public class TestController {

    @RequestMapping("/hello3")
    public Map<String, String> hello3() {
        Map<String, String> map = new HashMap<>();
        map.put("msg","提交代码，自动触发Jenkins构建");
        return map;
    }


    @RequestMapping("/hello")
    public Map<String, String> hello() {
        Map<String, String> map = new HashMap<>();
        map.put("msg","hello jenkins");
        return map;
    }

    @RequestMapping("/hello1")
    public Map<String, String> hello1() {
        Map<String, String> map = new HashMap<>();
        map.put("msg","hello jenkins!!!");
        return map;
    }

    @RequestMapping("/hello2")
    public Map<String, String> hello2() {
        Map<String, String> map = new HashMap<>();
        map.put("msg","hello !!!!");
        return map;
    }
}
